package com.ruoyi.wms.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 货主订单编号生成记录对象 wms_owner_order_number_record
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class WmsOwnerOrderNumberRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long recordId;

    /** 租户ID */
    @Excel(name = "租户ID")
    private String tenantId;

    /** 货主ID */
    @Excel(name = "货主ID")
    private Long ownerId;

    /** 订单类型 */
    @Excel(name = "订单类型")
    private String orderType;

    /** 规则ID */
    @Excel(name = "规则ID")
    private Long ruleId;

    /** 生成日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生成日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date generateDate;

    /** 当前流水号 */
    @Excel(name = "当前流水号")
    private Integer currentSerial;

    /** 最后生成的订单号 */
    @Excel(name = "最后生成的订单号")
    private String lastOrderNo;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setTenantId(String tenantId) 
    {
        this.tenantId = tenantId;
    }

    public String getTenantId() 
    {
        return tenantId;
    }
    public void setOwnerId(Long ownerId) 
    {
        this.ownerId = ownerId;
    }

    public Long getOwnerId() 
    {
        return ownerId;
    }
    public void setOrderType(String orderType) 
    {
        this.orderType = orderType;
    }

    public String getOrderType() 
    {
        return orderType;
    }
    public void setRuleId(Long ruleId) 
    {
        this.ruleId = ruleId;
    }

    public Long getRuleId() 
    {
        return ruleId;
    }
    public void setGenerateDate(Date generateDate) 
    {
        this.generateDate = generateDate;
    }

    public Date getGenerateDate() 
    {
        return generateDate;
    }
    public void setCurrentSerial(Integer currentSerial) 
    {
        this.currentSerial = currentSerial;
    }

    public Integer getCurrentSerial() 
    {
        return currentSerial;
    }
    public void setLastOrderNo(String lastOrderNo) 
    {
        this.lastOrderNo = lastOrderNo;
    }

    public String getLastOrderNo() 
    {
        return lastOrderNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("tenantId", getTenantId())
            .append("ownerId", getOwnerId())
            .append("orderType", getOrderType())
            .append("ruleId", getRuleId())
            .append("generateDate", getGenerateDate())
            .append("currentSerial", getCurrentSerial())
            .append("lastOrderNo", getLastOrderNo())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}